import Vue from 'vue'
import VueRouter from 'vue-router'

import MyHome from '../views/MyHome.vue'
import Category from '../views/Category.vue'
import My from '../views/My.vue'
import MyOrder from '../views/MyOrder.vue'
Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: MyHome
    },
    {
        path: "/myhome",
        component: MyHome
    },
    {
        path: "/category",
        component: Category
    },
    {
        path: "/myorder",
        component: MyOrder
    },
    {
        path: "/my",
        component: My
    },
]

const router = new VueRouter({
    routes
})


export default router